﻿using System; 
using System.Collections.Generic;

namespace Orid.Management.Statistics.Tools.Decomposition.Data
{
    class JobLogOnline:JobLog
    {
        string connectString,jobTableName;

        public JobLogOnline(string jobDBAddress)
        {
            connectString =  jobDBAddress ;
            //[JobLogs]
            jobTableName = "[FutureManagement_Jobs].[FutureMa].[JobLogs]";
        }

        public override List<Orid.Management.Statistics.Tools.Decomposition.Model.ModelJobLog> GetJobLog(Guid JobID, int downloadID)
        {
            if (JobID == null)
            {
                return null;
            }

            return GetJobLog(JobID, downloadID, connectString, jobTableName, new AccountOnline());

        }
    }
}
